INotifyCollection

Ecng.Collections

Represents a collection that notifies about its changes.

実装: ICollection<T>, IEnumerable<T>, IEnumerable

イベント

Added
public event Action<TItem> Added
iNotifyCollection.Added += handler

Occurs after an item has been added.

Adding
public event Func<TItem, bool> Adding
iNotifyCollection.Adding += handler

Occurs before adding an item, allowing cancellation.

Changed
public event Action Changed
iNotifyCollection.Changed += handler

Occurs when a change happens in the collection.

Cleared
public event Action Cleared
iNotifyCollection.Cleared += handler

Occurs after the collection has been cleared.

Clearing
public event Func<bool> Clearing
iNotifyCollection.Clearing += handler

Occurs before clearing the collection, allowing cancellation.

Inserted
public event Action<int, TItem> Inserted
iNotifyCollection.Inserted += handler

Occurs after an item has been inserted at a specific index.

Inserting
public event Func<int, TItem, bool> Inserting
iNotifyCollection.Inserting += handler

Occurs before inserting an item at a specified index, allowing cancellation.

Removed
public event Action<TItem> Removed
iNotifyCollection.Removed += handler

Occurs after an item has been removed.

Removing
public event Func<TItem, bool> Removing
iNotifyCollection.Removing += handler

Occurs before removing an item, allowing cancellation.

RemovingAt
public event Func<int, bool> RemovingAt
iNotifyCollection.RemovingAt += handler

Occurs before removing an item at a specific index, allowing cancellation.